CFLAGS = -I../../.build/include/js -DEXPORT_JS_API -D_DEBUG -DTRACING
CXXLAGS = -I.. -DEXPORT_JS_API -DDEBUG -D_DEBUG -DTRACING

#LDFLAGS = -L../../.build/lib -ljs_static
LDFLAGS = -L../../.build/lib -L/usr/local/lib -L/usr/lib -lm -lstdc++ -export-dynamic `nspr-config --libs`  -ljs_static
#LDFLAGS = -L.. -lmozjs -L/usr/local/lib -L/usr/lib -lm -lstdc++ -export-dynamic `nspr-config --libs`  
#LDFLAGS = -L/usr/local/lib -L/usr/lib -lm -lstdc++ `nspr-config --libs`  
#LDFLAGS = -L../../.build/lib -lmozjs
#LDFLAGS = -L../../.build/lib -ljs_static


SOURCES = main.c

all: main
#	( LD_LIBRARY_PATH=../../.build/lib ./$? )

main: ${SOURCES}
	gcc -o $@ $? ${CFLAGS} ${LDFLAGS} 

clean:
	rm -f main


